Triggers problem
am 05.10.2005 11:43:12 von Ninad Kalamkar------=_Part_21470_3410762.1128505392155
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
i have a problem in triggers for that bellow is my table structure
survey table
questions table
question_id
survey_id
answer_options table
answer_option_id
question_id
now the problem is
i want to write a trigger after insert on survey table data should be
inserted in questions and answer options table
i get survey_id by new.survey_id but in same function i am not getting
question_id to insert in answer option for newly inserted questions as the
trigger is on insert of survey table
i don't want to use cascaded triggers because it is creating some more
problems
please guide me in this regards
------=_Part_21470_3410762.1128505392155
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
i have a problem in triggers for that bellow is my table structure
survey table
mailto:pgsql-php@postgresql.org">=
survey_id
questions table
question_id
survey_id
answer_options table
answer_option_id
question_id
now the problem is
i want to write a trigger after insert on survey table data should be inser=
ted in questions and answer options table
i get survey_id by new.survey_id but in same function i am not
getting question_id to insert in answer option for newly inserted
questions as the trigger is on insert of survey table
i don't want to use cascaded triggers because it is creating some more prob=
lems
please guide me in this regards
------=_Part_21470_3410762.1128505392155--